import store from "@/store";

export default {
  install(Vue, options) {
    Vue.directive('per', {
      inserted(el, binding) {
        const userPoints = store.state.user.userInfo.roles.points
        if (!userPoints.includes(binding.value)){
          el.remove()
        }
      }
    })
  }
}
